/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.kleintjes.guessletter.Impl;

import za.ac.cput.kleintjes.guessletter.GuessLetter;

/**
 *
 * @author Administrator
 */
public class GuessLetterImpl implements GuessLetter{
    private char secretLetter;
    
    @Override
    public boolean takeGuess(char guess) {        
        if(secretLetter == guess)
            return true;
        else
            return false;
    }
    
    @Override
    public void setLetter(char lett)
    {
        secretLetter = lett;
    }
        
    public void generateLetter()
    {
        secretLetter = (char)((Math.random()*122-97) + 97);
    }
}
